package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 合同业务对象 zj_sys_contract
 *
 * @author zyb
 * @date 2023-12-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ZjSysContractBo extends BaseEntity {

    /**
     * 合同ID主键
     */
    @NotNull(message = "合同ID主键不能为空", groups = { EditGroup.class })
    private Long contractId;

    /**
     * 所属项目ID
     */
    @NotNull(message = "所属项目ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 所属部门ID(标段dept_id)
     */
    @NotNull(message = "所属部门ID(标段dept_id)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 所属项目名称冗余
     */
    @NotBlank(message = "所属项目名称冗余不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectName;

    /**
     * 施工单位
     */
    @NotBlank(message = "施工单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sgGroup;

    /**
     * 监理单位
     */
    @NotBlank(message = "监理单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jlGroup;


    /**
     * 检测单位
     */
    private String jcGroup;

    /**
     * 合同号
     */
    @NotBlank(message = "合同号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contractNum;


}
